// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import 'babel-polyfill'
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import axios from 'axios'

// UI
import elementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import CommonUtils from '@/assets/commonUtil.js'

import AddJournal from './components/AddJournal'

Vue.prototype.$axios = axios
Vue.config.productionTip = false
Vue.prototype.$commonUtils = CommonUtils

Vue.use(elementUI)

Vue.component('AddJournal', AddJournal)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App },
  store,
  render: h => h(App)
})
